def print_shuixianhua(num):
    print("打印1000以内的水仙花数：")
    for num in range(100,1000):
        bai=num//100
        shi=(num//10)%10
        ge=num%10
        sum=bai**3+shi**3+ge**3
        if sum==num:
            print(num)
print_shuixianhua(1000)